﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CoreData;
using ActionServices;
using Helper;

namespace MMO50K.Controllers
{
    public class PostController : BaseController
    {
        public PostController(IworkActionService work) : base(work) { }
        //
        // GET: /Post/
        #region Main
        public ActionResult Index()
        {
            return View();
        }
        #endregion
        #region Other
        /// <summary>
        /// View Detail Post
        /// </summary>
        /// <returns></returns>
        public ActionResult Detail() {
            work model = new work();
            model.active = true;
            model.createdate = DateTime.Now;
            for (int i = 0; i < 100; i++)
            {
                model.description = "Donec sed odio dui. Nulla vitae elit libero, a pharetra augue LAN" + i;
                model.image = "Buddies-For-Africa-thumb.jpg";
                model.link = "Detail";
                model.lockreason = "Post Sếch";
                model.metadescription = "Meta Description";
                model.modifieddate = DateTime.Now;
                model.name = "I will record nearly anything you want as" + i;
                model.price = 50;
                model.sole = 1;
                model.status = 1;
                model.title = "I will record nearly anything you want as" + i;
                model.type = 1;
                model.userid = 2;
                model.view = 10 * i;
                if (i % 2 == 0)
                {
                    model.jobid = 1;
                }
                else
                {
                    model.jobid = 5;
                }
                //this.WorkService.Save(model);
            }
            return View();
        }
        /// <summary>
        /// Show Comment View
        /// </summary>
        /// <returns></returns>
        public ActionResult _Comment() {
            return PartialView();
        }
        /// <summary>
        /// Detail Of Buyer Post
        /// </summary>
        /// <returns></returns>
        public ActionResult BuyDetail() {
            return View();
        }
        /// <summary>
        /// Partial View _ListTopic
        /// </summary>
        /// <returns></returns>
        public ActionResult _ListBuyTopic() {
            return PartialView();
        }
        /// <summary>
        /// Want Buy View
        /// </summary>
        /// <returns></returns>
        public ActionResult WantBuy() {
            return View();
        }
        #endregion

    }
}
